package 剑指offer;

import noffer.base.TreeNode;

/**
 * @author zhangjunfei
 * @date 2023/8/25 11:30
 */
public class O_27 {
    public TreeNode mirrorTree(TreeNode root) {

        if (root == null) {
            return root;
        }

        TreeNode temp = root.left;

        root.left = mirrorTree(root.right);
        root.left = mirrorTree(temp);


        return root;
    }
}
